# This scipt can change a block in a file.
import my_function as my
import re
# block_head is a word without = and {

game_path = r'D:\Games\Victoria 3'
region_path = r'\game\map_data\state_regions\00_west_europe.txt'
# resources
block_head = "capped_resources"
file_path = game_path + region_path
new_block_content = ''
my.replace_block(file_path, block_head, new_block_content)

block_head = "resource"
# file_path = "/home/h/games/Victoria 3/game/map_data/state_regions/12_indonesia.txt"
new_block_content = ''
my.replace_block(file_path, block_head, new_block_content)

block_head = "arable_resources"
# file_path = "/home/h/games/Victoria 3/game/map_data/state_regions/12_indonesia.txt"
new_block_content = ''
my.replace_block(file_path, block_head, new_block_content)